//javascript

function checkAll()
{
	//document.write("What the fuck!");
	var nodeList=document.getElementsByName("chB");
	//document.write(check);
	for(var i=0;i<nodeList.length;i++)
	{
		if(document.getElementById("chBAll").checked==true)
			nodeList[i].checked=true;
		else
			nodeList[i].checked=false;
	}
}

function check()
{
	document.getElementById("chBAll").checked=false;
}